package com.hs.jhzd.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/03/05
 **/
@Entity
@Data
@Table(name = "zf_yyjlb")
public class ZfYyjlbEntity {
    private String zybh;
    private String rybh;
    private String xm;
    private Byte xb;
    private String jsh;
    private String yyr;
    private Byte yylx;
    private Date yysj;
    private String yynr;
    private String yynrdm;
    private String yylxdm;
    @Column(columnDefinition = "bit", length = 4)
    private Integer zt;
    private Date zxsj;
    private String zxr;
    private String jsbh;
    private String jsmc;
    private String cjr;
    @CreatedDate
    private Date cjsj;
    private Date sjc;
    private Byte scbj;

    @Id
    @Column(name = "ZYBH")
    public String getZybh() {
        return zybh;
    }

    public void setZybh(String zybh) {
        this.zybh = zybh;
    }

    @Basic
    @Column(name = "RYBH")
    public String getRybh() {
        return rybh;
    }

    public void setRybh(String rybh) {
        this.rybh = rybh;
    }

    @Basic
    @Column(name = "XM")
    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    @Basic
    @Column(name = "XB")
    public Byte getXb() {
        return xb;
    }

    public void setXb(Byte xb) {
        this.xb = xb;
    }

    @Basic
    @Column(name = "JSH")
    public String getJsh() {
        return jsh;
    }

    public void setJsh(String jsh) {
        this.jsh = jsh;
    }

    @Basic
    @Column(name = "YYR")
    public String getYyr() {
        return yyr;
    }

    public void setYyr(String yyr) {
        this.yyr = yyr;
    }

    @Basic
    @Column(name = "YYLX")
    public Byte getYylx() {
        return yylx;
    }

    public void setYylx(Byte yylx) {
        this.yylx = yylx;
    }

    @Basic
    @Column(name = "YYSJ")
    public Date getYysj() {
        return yysj;
    }

    public void setYysj(Date yysj) {
        this.yysj = yysj;
    }

    @Basic
    @Column(name = "YYNR")
    public String getYynr() {
        return yynr;
    }

    public void setYynr(String yynr) {
        this.yynr = yynr;
    }

    @Basic
    @Column(name = "YYNRDM")
    public String getYynrdm() {
        return yynrdm;
    }

    public void setYynrdm(String yynrdm) {
        this.yynrdm = yynrdm;
    }

    @Basic
    @Column(name = "YYLXDM")
    public String getYylxdm() {
        return yylxdm;
    }

    public void setYylxdm(String yylxdm) {
        this.yylxdm = yylxdm;
    }


    @Basic
    @Column(name = "ZXSJ")
    public Date getZxsj() {
        return zxsj;
    }

    public void setZxsj(Date zxsj) {
        this.zxsj = zxsj;
    }

    @Basic
    @Column(name = "ZXR")
    public String getZxr() {
        return zxr;
    }

    public void setZxr(String zxr) {
        this.zxr = zxr;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "JSMC")
    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    @Basic
    @Column(name = "CJR")
    public String getCjr() {
        return cjr;
    }

    public void setCjr(String cjr) {
        this.cjr = cjr;
    }

    @Basic
    @Column(name = "CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "SJC")
    public Date getSjc() {
        return sjc;
    }

    public void setSjc(Date sjc) {
        this.sjc = sjc;
    }

    @Basic
    @Column(name = "SCBJ")
    public Byte getScbj() {
        return scbj;
    }

    public void setScbj(Byte scbj) {
        this.scbj = scbj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZfYyjlbEntity that = (ZfYyjlbEntity) o;
        return Objects.equals(zybh, that.zybh) &&
                Objects.equals(rybh, that.rybh) &&
                Objects.equals(xm, that.xm) &&
                Objects.equals(xb, that.xb) &&
                Objects.equals(jsh, that.jsh) &&
                Objects.equals(yyr, that.yyr) &&
                Objects.equals(yylx, that.yylx) &&
                Objects.equals(yysj, that.yysj) &&
                Objects.equals(yynr, that.yynr) &&
                Objects.equals(yynrdm, that.yynrdm) &&
                Objects.equals(yylxdm, that.yylxdm) &&
                Objects.equals(zt, that.zt) &&
                Objects.equals(zxsj, that.zxsj) &&
                Objects.equals(zxr, that.zxr) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(jsmc, that.jsmc) &&
                Objects.equals(cjr, that.cjr) &&
                Objects.equals(cjsj, that.cjsj) &&
                Objects.equals(sjc, that.sjc) &&
                Objects.equals(scbj, that.scbj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(zybh, rybh, xm, xb, jsh, yyr, yylx, yysj, yynr, yynrdm, yylxdm, zt, zxsj, zxr, jsbh, jsmc, cjr, cjsj, sjc, scbj);
    }
}
